package cn.edu.scau.cmi.tancuier.simpleFactory;

import cn.edu.scau.cmi.tancuier.simpleFactory.domain.*;

public class MeatFactory {
	public static Meat getMeat(String meatTypeString) {
		Meat meat = null;
		switch(meatTypeString) {
		case "Beef":
			meat = new Beef(); break;
		case "Pork":
			meat = new Pork(); break;
		case "Chicken":
			meat = new Chicken(); break;
		}
		return meat;
	}
}
